import React from 'react'
import defaultEmptyImg from '@/assets/images/empty.svg'

export default props => {
	const {
		image = defaultEmptyImg,
		emptyText = "暂无数据"
	} = props
	return (
		<div className="x-empty">
			<div className="x-empty-image"><img src={image} alt={emptyText} /></div>
			<p className="x-empty-description">{emptyText}</p>
		</div>
	)
}